package pojo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.List;

@ApiModel("资讯实体类")
public class Information {
    @ApiModelProperty(value = "资讯ID")
    private Long informationId;
    @ApiModelProperty(value = "资讯标题")
    private String title;
    @ApiModelProperty(value = "资讯标题")
    private String simpleTitle;
    @ApiModelProperty(value = "资讯分类栏目")
    private Long categoryId;
    @ApiModelProperty(value = "文章类型")
    private int textType;
    @ApiModelProperty(value = "关键词")
    private String keyword;
    @ApiModelProperty(value = "文章摘要")
    private String optionalExcerpt;
    @ApiModelProperty(value = "文章作者")
    private String authors;
    @ApiModelProperty(value = "文章来源")
    private String articleSource;
    @ApiModelProperty(value = "评论状态")
    private int reviewStatus;
    @ApiModelProperty(value = "文章内容")
    private int content;
    @ApiModelProperty(value = "图片地址")
    private String urlImg;
    @ApiModelProperty(value = "发布人ID")
    private Long sourceId;
    @ApiModelProperty(value = "发布状态")
    private int statusType;
    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @ApiModelProperty(value = "浏览次数")
    private int viewCount;
    @ApiModelProperty(value = "删除状态")
    private int deleteType;

    public List<Manager> getManager() {
        return manager;
    }

    public void setManager(List<Manager> manager) {
        this.manager = manager;
    }

    List<Manager>  manager;

    @Override
    public String toString() {
        return "Information{" +
                "informationId=" + informationId +
                ", title='" + title + '\'' +
                ", simpleTitle='" + simpleTitle + '\'' +
                ", categoryId=" + categoryId +
                ", textType=" + textType +
                ", keyword='" + keyword + '\'' +
                ", optionalExcerpt='" + optionalExcerpt + '\'' +
                ", authors='" + authors + '\'' +
                ", articleSource='" + articleSource + '\'' +
                ", reviewStatus=" + reviewStatus +
                ", content=" + content +
                ", urlImg='" + urlImg + '\'' +
                ", sourceId=" + sourceId +
                ", status=" + statusType +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", viewCount=" + viewCount +
                ", deleteType=" + deleteType +
                ", manager=" + manager +
                ", newPages=" + newPages +
                ", pages=" + pages +
                '}';
    }

    public int getNewPages() {
        return newPages;
    }

    public void setNewPages(int newPages) {
        this.newPages = newPages;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    @ApiModelProperty(value = "开始显示")
    private int newPages;
    @ApiModelProperty(value = "显示数据")
    private int pages;

    public Long getInformationId() {
        return informationId;
    }

    public void setInformationId(Long informationId) {
        this.informationId = informationId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSimpleTitle() {
        return simpleTitle;
    }

    public void setSimpleTitle(String simpleTitle) {
        this.simpleTitle = simpleTitle;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public int getTextType() {
        return textType;
    }

    public void setTextType(int textType) {
        this.textType = textType;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getOptionalExcerpt() {
        return optionalExcerpt;
    }

    public void setOptionalExcerpt(String optionalExcerpt) {
        this.optionalExcerpt = optionalExcerpt;
    }

    public String getAuthors() {
        return authors;
    }

    public void setAuthors(String authors) {
        this.authors = authors;
    }

    public String getArticleSource() {
        return articleSource;
    }

    public void setArticleSource(String articleSource) {
        this.articleSource = articleSource;
    }

    public int getReviewStatus() {
        return reviewStatus;
    }

    public void setReviewStatus(int reviewStatus) {
        this.reviewStatus = reviewStatus;
    }

    public int getContent() {
        return content;
    }

    public void setContent(int content) {
        this.content = content;
    }

    public String getUrlImg() {
        return urlImg;
    }

    public void setUrlImg(String urlImg) {
        this.urlImg = urlImg;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public int getStatusType() {
        return statusType;
    }

    public void setStatusType(int statusType) {
        this.statusType = statusType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public int getDeleteType() {
        return deleteType;
    }

    public void setDeleteType(int deleteType) {
        this.deleteType = deleteType;
    }
}
